package cn.neusoft.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private String order_id;

    private Integer order_kind;

    private String order_customer_id;

    private String order_commodity_id;

    private String order_status;

    private String del_flag;

    private String create_by;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date create_time;

    private BigDecimal price;   //商品单价(原价*折扣)

    private Integer if_restock;

}